<?php

define('PRODUCTION', $_SERVER['HTTP_HOST']);
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);

if(PRODUCTION  == 'localhost') {
    define('ROOT', 'http://' . $_SERVER['HTTP_HOST'] . '/300gifs/');
    define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '300gifs/');
}
else {
    define('ROOT', 'http://' . $_SERVER['HTTP_HOST'] . '/');
    define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT']);
}

define('ALBUM_PATH', ROOT . 'albums/');
define('ALBUM_PATH_CLEAN', './albums/');

$config = array (
    'host' => 'localhost',
    'username' => 'root',
    'password' => '',
    'dbname' => '300gifs.com'
);